#ifndef CADRETRAINTAB_H
#define CADRETRAINTAB_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class CadreTrainTab;
}

class CadreTrainTab : public QWidget
{
    Q_OBJECT

public:
    explicit CadreTrainTab(QWidget *parent = 0);
    ~CadreTrainTab();

    void setButtonEnable(bool i);
    void initTrainTableView(QString curPerson);

private slots:
    void on_trainAddButton_clicked();

    void on_trainDeleteButton_clicked();

    void on_trainUpButton_clicked();

    void on_trainDownButton_clicked();

private:
    Ui::CadreTrainTab *ui;
    QString currentPerson;
    QSqlTableModel *trainModel;
};

#endif // CADRETRAINTAB_H
